<?php

$temposessao = 60; //em segundos
session_start(); 

if ($_SESSION["sessiontime"]) { 
	if ($_SESSION["sessiontime"] < (time() - $temposessao)) { 
		session_unset();
		echo "Seu tempo Expirou colega loge-se novamente!";
		} 
} else { 
	session_unset();

} 

$_SESSION["sessiontime"] = time();

